package com.zzz.test;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhuzhizun
 * @date 2021/7/29
 */
@Data
@NoArgsConstructor
public class User {

    private Integer id;
    private String name;
    private Integer age;
    private static User user = new User(1,"zzz",22);
    private static String phone = "123";
    private Attention attention;

    public  void print(){
        System.out.println("获取user对象,并执行print方法！");
    }

    public User(Integer id, String name, Integer age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public User(Integer id, String name, Integer age, Attention attention) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.attention = attention;
    }
}
